#pragma once

#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <algorithm>
using namespace std;

#include "multimedia.h"
#include "movie.h"
#include "music.h"
#include "book.h"

class multimediaRegister
{
private:
	vector<multimedia*> v;
public:
	multimediaRegister();
	~multimediaRegister();

	void add(multimedia*);
	void remove(multimedia*);
	vector<multimedia*>::iterator search(multimedia*);
	void sort();
	void display();

	void readFile(string);
	void writeFile(string);
};

